class NewsController < ApplicationController
  layout 'display'
  caches_page :index,:show
  def index
    @title="明珠动态"
    @tag = "news"
    @news=Article.paginate(:per_page => 12,:page => params[:page],:select => "id,title,short_des,created_at",:order => 'created_at desc')
  end

   def show
    @news = Article.find(params[:id])
    @title=@news.title
    @tag = "news"
    respond_to do |format|
      format.html 
      format.xml  { render :xml => @article }
    end
  end
end
